all: exemple example_thread example_pthread
exemple: thread.so exemple_thread.c
	gcc -W -Wall -g -O0 -o $@ $^
example_thread:  thread.so example.c
	gcc -W -Wall -g -O0 -o $@ $^
example_pthread:  pthread.c
	gcc -W -Wall -g -O0 -o example_pthread pthread.c -lpthread
thread.so:thread.o list.o 
	gcc -W -Wall -shared -o $@ $^
%.o: %.c
	gcc -W -Wall -g -O0 -c $^
clean: 
	rm thread.o thread.so list.o example_pthread example_thread exemple
config:
	export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH
